<%--
  Created by IntelliJ IDEA.
  User: asus
  Date: 2021/5/17
  Time: 20:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>添加学生</title>
</head>
<body>

    <form action="addservlet" method="post">
        <input type="hidden" value="${student.id}" name="id">
        <label for="username">姓名</label>
        <input id="username" name="username" type="text" value="${student.name}">
        <label for="userword">年龄</label>
        <input id="userword" name="userword" type="text" value="${student.age}">
        <input type="submit"

               <c:if test="${empty student.id}">value="添加"</c:if>
               <c:if test="${!empty student.id}">vocab="修改"</c:if>
            >



    </form>

</body>
</html>
